3d12b27ab916af14839e86cc37cc67320863e606,oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreTest.java,WriteCountingStore,createOrUpdate,#Collection#List#,2938

Before Change


        @Override
        public <T extends Document> List<T> createOrUpdate(Collection<T> collection, List<UpdateOp> updateOps) {
            if (updateOps.size() != 1) { //For size == 1 previous method gets called internally which inflates the count
                incrementCounter(collection);
            }
            return super.createOrUpdate(collection, updateOps);
        }

After Change



        @Override
        public <T extends Document> List<T> createOrUpdate(Collection<T> collection, List<UpdateOp> updateOps) {
            incrementCounter(collection);
            if (collection == Collection.NODES) System.out.println( "createOrUpdate (multi) " + updateOps);
            try {
                createMulti.set(true);